<?php $this->beginContent('//layouts/main'); ?>
<div class="container">
    <?php if(!Yii::app()->user->isGuest and ($_SESSION['user']->type == User::ADMIN)): ?>
        <div class="span-19">
            <div id="content">
                <?php echo $content; ?>
            </div><!-- content -->
        </div>
        <div class="span-5 last">
            <div id="sidebar">

            <?
                $this->beginWidget('zii.widgets.CPortlet', array(
                    'title'=>'Действия',
                ));
                $this->widget('zii.widgets.CMenu', array(
                    'items'=>$this->menu,
                    'htmlOptions'=>array('class'=>'operations'),
                ));
                $this->endWidget();

            ?>
            </div><!-- sidebar -->
        </div>
    <? else: ?>
        <div id="content">
		    <?php echo $content; ?>
	    </div><!-- content -->
    <? endif; ?>
</div>
<?php $this->endContent(); ?>